<template>
    <div class="mine">
        <div class="pageTitle" > 
            <span @click="goHome" class="goBack">{{'<'}}</span>
            我的 
        </div>

        <ul class="operationList">
            <li @click="goToTodayStatus">
                <span>今日状态统计分析</span>
                <span>></span>
            </li>
            <li @click="goToMyAchievement">
                <span>我的勋章墙</span>
                <span>></span>
            </li>
            <li>
                <span>我的角色信息</span>
                <span>></span>
            </li>
            <li @click="goToTimeReview">
                <span>时光机</span>
                <span>></span>
            </li>
        </ul>
    </div>
</template>

<script setup lang="ts">

import  {useRouter} from 'vue-router'

const router = useRouter()
const goHome=()=>{
    router.push('/home')
}

const goToTimeReview=()=>{
    router.push('/time-review')
}

const goToTodayStatus=()=>{
    router.push('/today-status')

}

const goToMyAchievement=()=>{
    router.push('/my-cchievement')

}

</script>

<style lang="less" scoped>
.mine{
    padding: 15px;
    font-size: 18px;
    box-sizing: border-box; 
    min-height: calc(100vh - 30px);
    .pageTitle{
        position: relative;
        font-size: 30px;
        .goBack{
            position: absolute;
            left: 0;
            text-align: left;
        }
    }


    .operationList{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        margin-top: 25px;
        li{
            display: flex;
            justify-content: space-between;
            border: solid  black 2px;
            padding: 8px 15px;
        }
    }
}
</style>